package org.dce.screencapturer.actions;

import javax.swing.Icon;

import org.dce.screencapturer.Drawing;

@SuppressWarnings("serial")
public abstract class DrawingAction 
	extends ScreenCapturerAction {
	
	private Drawing drawing;

	public DrawingAction(String category, String actionId, Icon icon) {
		super(category,actionId,icon);
	}

	public DrawingAction(String category, String actionId) {
		super(category,actionId);
	}

	public Drawing getDrawing() {
		return drawing;
	}

	public void setDrawing(Drawing drawing) {
		this.drawing = drawing;
		setEnabled(drawing != null);
	}
	
}
